Refactor action export so separate it