Refactoring is not a beginner skill. Ask Claude 3 or ChatGPT to give you a few examples with like 5-15 lines of code. But don't give them that until they have some experience.
Code isn't easy to understand for beginners. They need practice reading code.
Giving a beginner 1500 lines of code to refactor is ludicrous.