refactoring repo creation controller property