therapeutic refactoring