Added validations to ensure calculated group memberships and role assignments are destroyed properly