Cleaning up RangeDatatype implementation.