Remove duplicate code from method
Refactor Devtoosl.init_project to be simpler