provider: route_env_parse should depend on type not name