Decompose with distinct linear factors (#318)