Remove SpanInfo type and replace with TextSpan.