Centralize task status management in Task.