By Andrea Mandell, USA TODAY

Bill Cosby has parted ways with his Los Angeles-based attorney, Christopher Tayback, Andrew Wyatt, a representative for Cosby confirms to USA TODAY.

Angela Agrusa, of Liner LLP, will take over representing Cosby in civil cases from Tayback and his firm Quinn Emanuel Urquhart & Sullivan, LLP.

Tayback replaced entertainment lawyer Martin Singer last October, after a judge ruled that Cosby would have to give a new deposition in the California civil case brought by Judy Huth, who alleges she was sexually assaulted four decades ago at the Playboy Mansion.

READ MORE: Bill Cosby lawyers outline defence as his sexual assault case heads to trial

Tayback marked a win in March when a Los Angeles judge delayed that deposition while Cosby's criminal case proceeded in Pennsylvania.

But the losses in Cosby's Pennsylvania criminal case have continued.

Cosby, 78, is facing trial over an encounter at his home with Andrea Constand in 2004. Constand said Cosby drugged and raped her; Cosby said the encounter was consensual.

In April, Cosby's legal team lost a key appeal tied to his sexual assault trial, having argued that Cosby's immunity deal a decade ago with the then-district attorney not to prosecute in return for testifying fully in a deposition for a civil suit filed by Constand should be honored. A judge disagreed, as did an appeals court.

Last week, Cosby and his legal team argued in court in Norristown, Pa., outside Philadelphia, that Cosby should have the right to face his accuser, Constand, and cross-examine her before trial about her accusations that he drugged and molested her at his nearby home in 2004.

The alternative, Cosby's lawyers argued, was hearsay evidence — Constand's statement to police. If Cosby is forbidden from compelling Constand to testify under oath before trial, the aggravated indecent assault charges against him should be dismissed.

Judge Steven O'Neill rejected Cosby's argument, ruling that Cosby will be tried (although he did not set a trial date), and there will be no other pre-trial hearing for Cosby to grill Constand.

"Trying Mr. Cosby in a court of public opinion — as imbalanced media coverage promotes — runs directly counter to our judicial system’s most fundamental guarantees of fairness under the law," reads a statement from Agrusa, Cosby's new lawyer.

"Those, like Mr. Cosby, who face this sort of scrutiny without having had their day in court need and deserve representation to ensure that justice does not yield to news cycles and soundbites. Mr. Cosby seeks a just resolution to the accusations leveled against him and we will work to safeguard his rights to the fullest extent in that pursuit."

Cosby's lead defense attorney, Brian McMonagle, will continue to represent the comedian in the Constand trial, along with attorney Monique Pressley. After last week's ruling, McMonagle said he will appeal Thursday's ruling to the high court.

READ MORE: Bill Cosby lawyers outline defence as his sexual assault case heads to trial

According to a Los Angeles Business Journal article in 2014, Agrusa is a partner in theLiner law firm’s litigation department, with a practice focused on consumer false-labeling claims and competitor false-advertising challenges, deceptive trade practices and class-action litigation. She is the chair of Liner’s consumer marketing and product labeling practice.

The Associated Press reports the Liner firm represents singer Blake Shelton in a defamation case against a celebrity magazine. The firm also defended the doctor charged with overprescribing painkillers to the late model Anna Nicole Smith.