r363169 intended to fix PR42238, but then caused PR43308.
Reverting to fix PR43308; patches 2 and 3 will address PR42238 another way.
Normally a revert wouldn't go up for review; this is mainly so people have something to refer to when looking at patches 2 and 3 in the series.