Refactoring in compiler