...no. Not happening.

You need to be aware of the fact that duplicating code when you need its functionality to change is very bad code practice and leads to unmaintainable and buggy code. While I agree with the sentiment that perhaps variables should have their sort set to KItem here, that code belongs in FlattenSyntax and is expressible in a few lines. I have already had to clean up several places in the code base where you have done this previously, and more still remain. If you want to develop code in thus code base, you have to learn not to do this.