True but as per the concept, factorys are usually used to generate instances of an entity and in case singleton, there exists only single instance of an entity that makes it anti pattern. Either my understanding is wrong or they've made wrong design decision.