A Study of Metallurgical Factors for Defect Formation in Electric Resistance Welded API Steel Pipes