Removes misc deprecated and unhygienic elements.

The only non-trivial contrib is in SemanticHighlightingPositionsTest