Convert all base Kernel constructions to use AST