Refactoring: Moves rendering code to RenderingContext.