Refactor Pomodoro factory to be minification-safe