```ruby
embedded_links = embedded.inject({}) { |h, (k, v)| h[k] = get_base_links(v); h }
```