If it was using `repository#[]=` here, then this could be written more idiomatically as:

```ruby
relations[name] = repository[name] = relation
```