refactoring insights