This method should return an IRouteConstraint, and this code should be modified to use the DI system rather than all this custom activator goop. This should be done in the next followup bug (see above)