Reduce constructor copypasta in RenderText and RenderElement.