The parallel is that Dexter kills people that he thinks are bad. He also doesn't want to kill anyone, but knows that he has to to satiate his inner demon.
Barry used to kill a lot of people (as a hit man). Now he doesn't want to kill anyone else, but will make an exception if you're a bad...