the above three lines could be merged into one line

```ruby
drop_database(sub_config) unless sub_config.is_a?(Hash) && sub_config[:database]
```