refactoring shops