Could use some comments here (similar to those which were removed). I would also split this up in to two booleans that are or'd together. `converting_to_header` and `is_non_td_header` or something