Remove some ref
patterns from the compiler
#106090
Merged
ref
patterns from the compiler
#106090