public CoordinatorResult<LeaveGroupResponseData, CoordinatorRecord> classicGroupLeave(
        RequestContext context,
        LeaveGroupRequestData request
    ) throws ApiException {
        return groupMetadataManager.classicGroupLeave(context, request);
    }
Handles a LeaveGroup request.

@param context The request context.
@param request The actual LeaveGroup request.

@return A Result containing the LeaveGroup response and
        a list of records to update the state machine.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorShard.java