fix warning about ReferenceFields

Revisiting this in the future would be good. For now we'll use the
legacy method.