Move arguments to inner generator function for async rewrites.