refactors regarding group unions