Partially revert #2922

This is causing a bug in 1.2 (see ocaml/opam#1831 and ocaml/opam#1834) and was working fine anyway.