Managing security, safety and privacy in Smart Factories