Oh it might be nice to use `Hash#fetch` for cases like this. This should do the same thing but is a tiny bit more readable:

```ruby
body = options.fetch(:query, {})
```