Rehabilitation and upgrading of the water factory production line