Remove unused symbols and imports from the library.