Cleanup export code in R package.