Move import/export logic to stores