Make exports controller DRYer