Move imports to the top.
Remove unused code and move imports to the top.