Changes allocation removal functions to allow for multiple groups as parameters