docs: function generateEndpointFactories( routesByNamespace ) {
  
  	return objectReduce( routesByNamespace, ( namespaces, routeDefinitions, namespace ) => {
  
  		// Create
  		namespaces[ namespace ] = objectReduce( routeDefinitions, ( handlers, routeDef, resource ) => {
  
  			const handlerSpec = createResourceHandlerSpec( routeDef, resource );
  
  			const EndpointRequest = createEndpointRequest( handlerSpec, resource, namespace );
  
  			// "handler" object is now fully prepared; create the factory method that
  			// will instantiate and return a handler instance
  			handlers[ resource ] = function( options ) {
  				return new EndpointRequest( {
  					...this._options,
  					...options,
  				} );
  			};
  
  			// Expose the constructor as a property on the factory function, so that
  			// auto-generated endpoint request constructors may be further customized
  			// when needed
  			handlers[ resource ].Ctor = EndpointRequest;
  
  			return handlers;
  		}, {} );
  
  		return namespaces;
  	}, {} );
  }