Extract Ast classes into constants.