Refactor: fencer: functionize getting delegate from XML
This will make it easier to muck with return codes.