Split Main into project structure