All the formatting logic done from line 71 to here actually belongs to a formatter, not to the handler itself