Remove excess pipes