Moved all filtering logic for datatype expressions to DatatypeIndex