Refatorando o RuleFactory