Remove repeated code (#1891)
Remove repeated code (#1891)

Signed-off-by: aavarghese <fc31519d846639979e9146e54c54592087bdb02c@us.ibm.com>
knative-sandbox/eventing-kafka-broker,knative-sandbox/eventing-kafka-broker,knative-sandbox/eventing-kafka-broker