I believe that Flake was once the director or some kind of official of the libertarian Goldwater Institute in Phoenix.
That would account for his back stabbing of Tom Delay and his open borders approach. Libertarians are more "me myself and I" centered so think screw Tom Delay if it messes up my re-election. And one current of libertarian thought is for open borders. The Wall Street Journal editorial board for example