AST-based search and replace to refactor to new `Playground` impl