Split create_project to small functions