unify all of the TD processor code
The fact that it's a lot of copypasta and duplication between two functions isn't ideal at all, and is a source of confusion and bugs like in #44 (closed).
The fact that it's a lot of copypasta and duplication between two functions isn't ideal at all, and is a source of confusion and bugs like in #44 (closed).