Cometary ices in forming protoplanetary disc midplanes