I don't think you want to be modifying the hash that is being passed in.

``` ruby
namespace_options = {}
namespace_options[:requirements] = ... if options && options[:requirements].is_a? Regexp
...
```