Reduced some duplication in the FileSenderJob