Remove more ref
patterns from the compiler
#105368
Merged
ref
patterns from the compiler
#105368