But in any case, I think all this should be moved out of the router, and just be in code. There's only one instance of this class; there's no reason to create all this attribute ceremony.