Yep, touched on this on another thread regarding how to tackle sectarian movements, but the main way is through social development.
Free high quality education to the masses up until 16/18 at least, which places emphasis on moral values, Pakistani nationalism, and racism being unacceptable. In the west very few would think like this because these values have been ingrained as morally wrong into them since young. There needs to be social facilities, like sports clubs to keep people occupied so they aren't victims or easy targets to any of these groups. Create more intern programs and give people opportunities so they have no reason to risk their life for this BS.