When I successfully refactored a legacy project