Refactor Euler problems.