Refactor DataTable validation.