I would
```ruby
def view_repos
  self.component_content_views.inject({}) do |view_repos, view|
    view_repos.update view.id => view.repos(self.organization.library).
        inject(Set.new) { |ids, repo| ids << repo.library_instance_id }
  end
end
```