Refactor merge two functions
Refactor merge two functions

vrischmann/sarama,LastManStanding/sarama,rafrombrc/sarama,scalingdata/sarama,HelixEducation/sarama,yangfan876/sarama,winlinvip/sarama,kraveio/sarama,jepst/sarama,betable/sarama,DataDog/sarama,HelixEducation/sarama,kraveio/sarama,VividCortex/sarama,Neuw84/sarama,aybabtme/sarama,Shopify/sarama,aybabtme/sarama,jimmykuo/sarama,crast/sarama,gyroscope-innovations/legacy_sarama,jimmykuo/sarama,rafrombrc/sarama,gyroscope-innovations/legacy_sarama,betable/sarama,vrischmann/sarama,kmiku7/sarama,kmiku7/sarama,jepst/sarama,yangfan876/sarama,winlinvip/sarama,uovobw/sarama,pronix/sarama,pronix/sarama,mailgun/sarama,mailgun/sarama,remerge/sarama,cep21/sarama,scalingdata/sarama,Shopify/sarama,VividCortex/sarama,cep21/sarama,xiaotianlis/sarama,raisemarketplace/sarama,raisemarketplace/sarama,DataDog/sarama,Neuw84/sarama,uovobw/sarama,LastManStanding/sarama,remerge/sarama,crast/sarama,sclasen/sarama