`curve_segment_num` -> `segments_num`. The "curve" prefix is reduntant for a function in the curve namespace.