Refactor into TL/IL.