Replace deprecated calls to LoadingCache.apply