Gets rid of unused imports in Text.