Extracted Caching logic of CachedDispatcherFactory