Seems

```ruby
raw_registry_lookup(key, registry, dereferenced_hash) || {}
```
is sufficient because you just merge that to an empty hash with the tap. So the tap seems superfluous. The || {} is only necessary if the method returns nil.