Remove base classes for scalar values.