ctdb-recovery: Refactor banning a node into separate computation