Remove unused code in RuleEditForm