Ref was moved into core in 1.56.0.