Index > Linking > Convert inline links to references
This command simply scans the document for all inline and reference links, compiles them into a new reference list (leaving original reference titles intact) and inserts it after the headers, swapping out any references to those links with reference-style links. It checks for duplicates and uses the same name for multiple links, if necessary.