Refactor launch of project