Remove calls to configuration global

Replace with calls to the context global! So that we
can start moving to only having one annoying static
global around maybe...

Change-Id: I29e13d8990674641b2a4a633410c116249b057da