some minor code cleanups
Following the previous changes we made, 'env' is no longer required
in Core::Context and can be accessed from the request.