Move route pre config to handler