Could split this portion of this function out into a separate private function that generates the repo_ids.