Remove duplication in the batch build files.