Machining of cast steel ball valves