deprecate UnitGaggle class