Delete FTS jobs that have disappeared
Share filterReplicas with ReplicateAndRegister
move filterReplicas to a function
improve treatment of errors returned by filterReplicas