this func is sufficiently large I would prefer it be a named private member on `KafkaConsumer`