this may be more self documenting using 'type_keys' as the variable and then use type_keys.first.to_sym. Also, if you only expect one or only want the first one (not sure the logic if there are more keys here), but this could be:

```ruby
 type_keys = TYPE_KEYS.detect { |key| @options_hash.has_key?(key.to_sym) }
type_keys.to_sym || DEFAULT_TYPE
```
which I think is preferable.