Termkey refactor.