Why routePolicyType is not exported. This function will leak the un-exported type.