LocalInfinispanCacheFactory is deprecated and unused in XWiki Standard. Therefore, it should be moved to legacy.
https://github.com/xwiki/xwiki-commons/pull/1129 https://github.com/xwiki/xwiki-platform/pull/3574