Implemented as middleware to allow the app logic to be ignorant of the project infrastructure. But, easy enough to alter since, as you noted, we do not need this type of logic any other place at the present time. I'll update accordingly.