Reverted exclusion pattern generation to exclude most specific instead of direct descendants only.