Split up MaskRuleEngine.