I would
```ruby
existing = all_repos.inject(Hash.new { |hash, key| hash[key] = [] }) do |existing, repo|
  existing[repo.product.name] << repo.name
end
```