Refactoring in the compiler