private void removeMember(List<CoordinatorRecord> records, String groupId, String memberId) {
        records.add(newCurrentAssignmentTombstoneRecord(groupId, memberId));
        records.add(newTargetAssignmentTombstoneRecord(groupId, memberId));
        records.add(newMemberSubscriptionTombstoneRecord(groupId, memberId));
    }
Write tombstones for the member. The order matters here.

@param records       The list of records to append the member assignment tombstone records.
@param groupId       The group id.
@param memberId      The member id.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java