Remove unused imports and lists