ctdb-daemon: Remove duplicate code from helper binaries