Cleanup.
Util export dir function; generic route declaration.