This would be better done using something like:

```ruby
hash.map.with_object({}) do |(k, v), values|
  values[user_friendly_facet_label(k.to_s)] = find_schema_allowed_value_entry(k.to_s, v)
end
```

It might also benefit from a better parameter name than `hash`. Hash of what?