Add argument to rule_factory to support some legacy rules.
Add argument to rule_factory to support some legacy rules.

PiperOrigin-RevId: 163094412

bazelbuild/rules_apple,bazelbuild/rules_apple,bazelbuild/rules_apple,bazelbuild/rules_apple