Factor out make-route-param-resolver