Move caption formatting into GraphGeometry.