Refactoring. Remove RuleTypeTag enum.