Moved logic from record helper to export helper to centralize export-specific functionality and simplify configuration loading.