auto exit custom export builder
extract common code to function
improve method name
Merge pull request #722 from dimagi/skelly

auto exit custom export builder