FAB-16158 Slight refactor on endorser.go
FAB-16158 Slight refactor on endorser.go

Change-Id: Ia6360f1a905c944261676511517961a039c4711c
Signed-off-by: Jason Yellick <3a1724207862302656e55e6f840a9996dad69e59@us.ibm.com>

manish-sethi/fabric,stemlending/fabric,jimthematrix/fabric,muralisrini/fabric,stemlending/fabric,manish-sethi/fabric-sidedb,binhn/fabric,stemlending/fabric,manish-sethi/fabric-sidedb,muralisrini/fabric,muralisrini/fabric,jimthematrix/fabric,manish-sethi/fabric-sidedb,hyperledger/fabric,manish-sethi/fabric-sidedb,binhn/fabric,stemlending/fabric,manish-sethi/fabric,manish-sethi/fabric-sidedb,manish-sethi/fabric-sidedb,manish-sethi/fabric-sidedb,binhn/fabric,hyperledger/fabric