Refs #4040, #4041, move more logic out of HtmlTable ViewDataTable class.