Defactoring: putting the app back into a working state after an unsuccessful refactor.