Remove globals from the upload process