Small Transformer refactor: combine line/lineSegment

Test Plan: none

Auditors: alex