Remove duplication from upload expressions