Refactoring some reused code into a method (inside of the routes mapper)

I've created a method which refactors the ``scope`` method. It creates a method for the code which sets the recover hash and then merges the scope.