`_replaceReferences` might be a better name?