Refactoring classify row into data type classification class.