Create project command

Can we extract this block into a common method?