Refactor formatting for SortItem
Add formatting for every statement type
Move parser utility classes out of tree package