Refactors the whole project file structure