Merge datasets classes into one class.