Only check instanceof Rule once, remove array cases.