Finished refactoring generating process