Prepare the AST for strategies with parameters.