Unifiy and simplify RouteCollection::extensions()