Refactoring Ugly JS to Effect: A Long Approach - Effect Community