heat client : reduce duplication between functions
heat client : reduce duplication between functions

Move common code into utility function to reduce duplication

Signed-off-by: Steven Hardy <4d1810d1ff6d7f22d774341c4549c02173d2f2ab@redhat.com>

citrix-openstack-build/heat,Triv90/Heat,cwolferh/heat-scratch,gonzolino/heat,bbandaru/heat-cfntools,cwolferh/heat-scratch,jasondunsmore/heat,pshchelo/heat,citrix-openstack-build/heat,srznew/heat,noironetworks/heat,noironetworks/heat,maestro-hybrid-cloud/heat,Triv90/Heat,openstack/heat,dragorosson/heat,ntt-sic/heat,rickerc/heat_audit,srznew/heat,cryptickp/heat,rdo-management/heat,rh-s/heat,NeCTAR-RC/heat,JioCloud/heat,NeCTAR-RC/heat,pratikmallya/heat,miguelgrinberg/heat,pshchelo/heat,rh-s/heat,varunarya10/heat,miguelgrinberg/heat,redhat-openstack/heat,rickerc/heat_audit,varunarya10/heat,openstack/heat-cfntools,steveb/heat-cfntools,cryptickp/heat,maestro-hybrid-cloud/heat,steveb/heat,rdo-management/heat,sdake/heat-jeos,openstack/heat,takeshineshiro/heat,pratikmallya/heat,dims/heat,steveb/heat,Triv90/Heat,steveb/heat-cfntools,dims/heat,ntt-sic/heat,JioCloud/heat,gonzolino/heat,dragorosson/heat,takeshineshiro/heat,redhat-openstack/heat,jasondunsmore/heat