Moved import-and-export-from ("pull") action to common function.