If the group names are unique, lines 17-21 could be simplified as follows.
```ruby
feeds_with_groups[group_name] = feeds.map do |feed|
  { name: extract_name(feed.attributes).value, url: feed.attributes['xmlUrl'].value }
end
```