broker/kafka: combine identical code parts
broker/kafka: combine identical code parts

Signed-off-by: Tolstov Vasiliy Georgievich <0e8c6d1ce7f00ba8971d90482a8cb04f4c2a26c1@mtsbank.ru>

micro/go-plugins,micro/go-plugins