Update polymorphic config to only allow discriminator on the base type