Encode the list of filters to be excluded from the legend file in a more generic way