Switching to factories for creating the cache handlers.