Refactor: Removed duplicate code in the Infinispan Backend.