I wouldn't say a writer 'problem', more a writer decision. A strategy to remove the character, so that Xavier could do what Xavier did to Shaw and the rest would follow, including the Magneto comic book costume reveal at the end. It made sense.

You're very right, it's more a decision, I wrote problem cause I really wanted to see more of Frost in the film.