Refactor AST command place of creation.