DR500 - Trade pays off

Many years ago I used to tig weld and sheetmetal work for a living. Roll forward to now again that trade is paying off. Broken stud in bottom of engine. I know how to get that out. Build up whats left of the stud with weld. Then weld nut on. Then use spanner on nut. Out comes stud. Had to do this to the sump plug bolt as well.