The twist is, the Federation exists because of it's dark side. A couple of handfulls of people "do the dark deeds", so the whole Federation can honeslty claim to be good.
Yeah, except, the idea that this must be done runs against Roddenberry's optimistic vision. Section 31 can go soak its collective head.