I fail to see how that's an appropriate response. A small group of Mutants try to do something horrible (and are, it should be noted, stopped by other Mutants) so we butcher them for experimentation?
Most of the mutants butchered WERE Hellfire Club members, people who had no moral compunctions plotting the annihilation of all Humanity.
Magneto was a victim of Stryker's interrogation methods while in his plastic prison and he saw other mutants experimented on (Lady Deathstrike, Nightcrawler and Jason Stryker/Mastermind) in X2.
Magneto's plan would've killed millions, so he's no innocent.
Plus Jason Stryker only got lobotomized because he terrorized his family and drove his own mother to kill herself.
Also in X2, we saw Stryker lead an assault on the Xavier mansion with soldiers, all under the president's orders.
To an outsider, the X-Mansion is a secret training center operating outside the law armed with military grade hardware. You saying THAT wouldn't raise any eyebrows and warrant investigation?
This does put him in a precarious situation. Magneto has always said that it will be humanity that draws first blood.
He was wrong, it was the Mutants who drew first blood (Shaw).
Magneto's actions tend to be reactions to threats on mutants.
His actions tend to CREATE the problems for mutants. Not that he realizes this.
X1: His plan was to change world leaders into mutants, so that the mutant cause, becomes there's.
And in the end, if he'd used his machine he'd have killed everyone in NYC and all the world leaders.
X2: Feeling the war was already started by Stryker, he tried to end it using Stryker's own machine to target humans.
Sorry, nothing justified trying to wipe out all of Humanity.
X3: The cure for mutation was created. Which, as Magneto hypothesized would be weaponized and was used against mutants, willing and unwilling.
It wasn't forced on anyone, only the volunteers got it. They only weaponized it because Magneto attacked.
FC: Both the Russian and US Navies were given orders by their higher ups to exterminate the mutants on the island. This after they the X-Men stopped the Cuban Missile Crisis.
A crisis STARTED by Mutants. Hell, Erik outright said he AGREED with everything Shaw said and was only killing him because he killed his mom. Other than that, Erik was already happy to wipe out Humanity BEFORE the Humans fired at them.
DOFP: After hearing Wolverine's tale about what becomes of mutantkind in the future. The Sentinels, the death camps, the extermination squad. Magneto decided to lead an assault on the White House and kill all those responsible.
He never stops to think that maybe if Mutants actually bothered cooperating and meeting Humanity halfway that maybe this would stop things. After all, if Trask hadn't been killed by a mutant none of that bad future would've happened.
And of course, Xavier lets Erik go instead of letting him suffer for his actions.
Magneto's problem is that he thinks his Holocaust experience justifies everything he does. It doesn't. The Human/Mutant conflict is nothing like the Holocaust.