Refactor Task#done?