Remove unused imports and methods.