Refactor: Task mutated only in TaskDAG and Worker base class. Good enough for the moment.