Make remove_unused a task of its own