Backport for maxNumberOfFeaturesForPreview

Modified maxNumberOfFeaturesForPreview for backport using Metadatamap.