Code Quality Enhancement in TaskEntity