Remove unused imports, functions, tasks