His move followed weeks of introspection as McCarthy considered the consequences for his California district and himself.