Pipeline drainage