Moving factory to auto implement correct pagination for web requests