core: Refactor exports def to use ExportSource