Add find_rule_components method