Rename and remove unused imports.