Target-location logic for xrefgen.