[YM] factory implementation with group