Production of titanium at a metallurgical plant