Factor out common TUVContentSink code from TUV/Subflow/HighlightTag

    This includes a unittest which currently fails.