Moved get_subpath and get_reverse_params prototypes into View model.