I based it off the way the [action options](https://github.com/rails/rails/blob/master/actionpack/lib/action_dispatch/routing/mapper.rb#L967) are handled, happy to change it if there's another way you'd prefer.