Unify rule matching.