Initial work to refactor RenderContext.