more refactoring for repos hash.