[CodeGenPrepare] Use variables for reused values. NFC.