Instead of both these lines:

```ruby
environment_options = options.dup.merge!(environment)
options = environment_options || options
```

could you do?

```ruby
options.merge!(environment)
```