In retrospect it is clear that this type of functionality should have been handled via a plugin or theme CSS to begin with, but it was already in core, so it should not have been removed without a transition period and a clear transition path.