Replace PathMultiPiece instances with a more generic one.