Refactored initproject function into InitProject class