Refactorize whole project.