I think she was hated before she went to New York. I think the reason she went to New York was she knew she was onto a hiding. She had a very small majority so the writing was on the wall.
Trust me, if she had been sitting in a safe seat with a large majority she would still be there.