He can’t fire Sessions and leave McCabe in charge. He has to remove McCabe first and Mueller by association.
If Trump fires Sessions, Rosenstein is in charge. McCabe heads the FBI and works directly for Rosenstein, the Deputy AG. Wray will be confirmed soon as the head of the FBI.