Refactor code between LTIX and LTI.