This is fine but GroupState could do this in its destructor.