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