Mark a few variables const. NFC.