Five partners have quit Shearman & Sterling as the firm prepares for a possible merger with Hogan Lovells.