I was reading through the comments, waiting for someone to say exactly that.
It's a pretty standard formula. Appeal to the base in the primary; run to the center in the general.