Optimizing repair & EOL of products