Factorize the export routes