refactoring at home