util: Fix reduction of line adjacency primitives.