Separated routing and config.