Factor out ast.cursor -> cursors