Process nested rules.