to get a project right, you should plan a major code refactor around 3/4 time in the development schedule.