Perf: smartquotes logic cleanup