extval allows to include and exclude metadata dynamically. currently there are already a lot add-ons out there. this add-on allows to exclude metadata conditionally in a fine-grained manner. furthermore, it's possible to use it for 3rd party annotations as well.
the usage at your properties looks like:
if you have multiple target conditions the usage looks like:
you can find the add-on at: