Texas Assistant Solicitor General Andrew Davis, who worked on the case in which a judge declared the Affordable Care Act unconstitutional, is leaving the Texas Office of the Attorney General effective today to become deputy chief counsel to Sen. Ted Cruz, R-Texas.

He filed a letter in the Obamacare case, Texas v. United States, to notify the U.S. Court of Appeals for the Fifth Circuit that he would withdraw as counsel in the case and two others in which he's handling appeals for the state.

“Other attorneys have appeared in each of these appeals, and will continue representation of the clients on whose behalf I have appeared,” he wrote in the March 26 letter.

Davis, who didn't respond to a call or emails seeking comment, wrote in his letter that he was leaving because he's accepted another job.

Jessica Skaggs, a spokeswoman for Cruz, said Davis would become deputy chief counsel, under Chief Counsel Judd Stone.

Cruz himself served as solicitor general in the Texas A.G.'s office from 2003 to 2008.

Davis earned his law degree from Columbia Law School in New York City in 2012 and got his Texas law license the same year, according to information in his State Bar of Texas profile. He's also licensed in the District of Columbia.