Adds PolymorphicCompatibleBaseModel.