Split pipe and tube autorouting functions into separate files.