Moved group management service
Added methods to cleanup invalid groups after closing enrollment.