Find proper subclass for dataset