As I pointed out above, I'm not sure what the law is in California. In some states, once you appear as counsel in a criminal case, you're stuck for the whole case. The theory is that if the defendant couldn't afford a lawyer, the court would have to appoint one anyway, so they will "appoint" the lawyer who's already in the case because he's the most familiar with the case.