Remove deprecated method from task.