Replacement of pipes for a heat exchangers