I don't think this should go here. It might be better to have a protocol `IRouteValue` for this.