refactor(analyze): avoid boxed rule state strings (#11385)