Ore refinery