Cleans up renderer.heading function.