moves deprecated export/import code to deprecated library