r25042: Avoid direct references to global loadparm context.