Detect requested export format using Format library, and export only the core data if CSV was requested.