Reduce can help shorten quite a few methods.

```
collections.reduce(Set.new) { |docs, (label, coll)|
  to_render.include?(label) ? docs.merge(coll.docs) : docs
}
```