Govt replaces ‘ageing’ coastal pipeline