Refactoring and change in design