undo effects of refactoring