Break out repeated code to separate init function
Break out repeated code to separate init function

raisemarketplace/sarama,DataDog/sarama,remerge/sarama,yangfan876/sarama,HelixEducation/sarama,cep21/sarama,pronix/sarama,kmiku7/sarama,jepst/sarama,Neuw84/sarama,VividCortex/sarama,jimmykuo/sarama,pronix/sarama,jepst/sarama,Neuw84/sarama,VividCortex/sarama,yangfan876/sarama,winlinvip/sarama,Shopify/sarama,mailgun/sarama,cep21/sarama,HelixEducation/sarama,jimmykuo/sarama,crast/sarama,DataDog/sarama,scalingdata/sarama,mailgun/sarama,Shopify/sarama,vrischmann/sarama,raisemarketplace/sarama,kmiku7/sarama,crast/sarama,remerge/sarama,scalingdata/sarama,winlinvip/sarama,vrischmann/sarama