Definition of done: details on refactoring