Remove unnecessary dependencies and imports.