Allow filtering of rules by metadata items when loading directories