To use the piping parts if they have the proper records of fabrication, testing, inspection, etc.
The defect welds need to be fixed with the qualified welders and to follow the proper procedure and inspection.
And, you may need to find out what's the actual reason of the weld defects happened two times.