Inserting knife gate valve into a route

A knife gate valve sits betwen two piping flanges. Anysuggestions on how this can be added in routing. Currently the onlyway I can do it is to create a subassembly of the valve withflanges and insert it into a split in the pipe.SolidworksRouting