Refactors project structure for scalability