I left it there to reuse the alert code in both view controllers.
But I agree with you, it's completely wrong  as it breaks the MVC paradigm.