include_alps_middleware and include_discovery_middleware are predicates now