Link refcodes to the containing entity.