Can he be re-appointed for another 10? Maybe he thinks that if he helps destroy Trump, then the President in 2023, whether it's Hillary, or Fauxcahontas, or Corey Booker, or Kamala Harris, or Maxine Waters, will re-appoint him out of gratitude.
All the President has to do to remove him is write a letter saying he has lost confidence in Comey as DIRFBI.
The only issue would be handling the political blowback.