Detached AST-optimization passes