return early if rule is * and remove one level of nesting