A three-year project to upgrade Leyland’s Wastewater Treatment Works is nearing completion.