Add domain logic to the task aggregate.