Move the ValueMap lookup inside linkFunctionBody. NFC.