private TextFieldInfo removeQuery(QueryTextSpan currentQuerySpan, char querySymbol) { var newQuerySpan = currentQuerySpan.WithoutQueryForSymbol(querySymbol); var spansToReuse = Spans.Replace(currentQuerySpan, newQuerySpan); return(ReplaceSpans(spansToReuse)); }