translate AST to a formatter before url generation
cache the formatter on the path object
remove dead code