Move repo method into DynamicBuild