TSA: Layout: Refactor tab command parsing into its own function.
TSA: Layout: Refactor tab command parsing into its own function.

Introducing, at last, a state structure! Well, we had to take this step one day...

VBChunguk/thcrap,thpatch/thcrap,VBChunguk/thcrap,thpatch/thcrap,thpatch/thcrap,VBChunguk/thcrap,thpatch/thcrap,thpatch/thcrap