Routing + global helper refactored.