Repair, Rebuild or Replace? Production Machines