Updating class method "refresh_groups" to remove duplicate user/membershipt-ype memberships.