Reduce code duplication between patchpoint and non-patchpoint lowering. NFC.