Extract rules from existing comments on upgrade