Refactor flag_transactions_as_attributes(flag) in ESA::Ruleset, refs #4