Martin D. Singer has been replaced in both cases by the law firm Quinn Emanuel Urquhart & Sullivan, according to a court filing and Monique Pressley, another of Mr. Cosby’s lawyers.