This reverts commit ad47144355.
ad47144355
Does not include #2336 as the file has been moved out from underneath it: will do this separately