Why did NC's governor strip himself of power?

CNN: In 2014, the North Carolina General Assembly passed a series of laws to create a series of new state agencies. Republican Gov. Pat McCrory deemed the move to be a power grab launched by his own party. So he did the only thing he could think of to protect his office: Sue the legislature.
"I have too much respect for North Carolina's constitution to allow the growing encroachment of the legislative branch into the responsibilities the people of North Carolina have vested in the executive branch," he said at the time.

Two years later, after he narrowly lost his re-election bid, McCrory's tune entirely changed. This month the Republican-controlled statehouse passed two pieces of legislation that stripped duties from the governor so that the power of his successor, Democratic Attorney General Roy Cooper, would be curtailed.

Read article