I think something like

```ruby
OPTIONAL_CONFIG_OPTIONS.reduce(Hash.new) do |options, config_option|
  config_option_value = config.public_send(option)
  options.merge!(config_option => config_option_value) if config_option_value
  options
end
```

is a little clearer