I merge the settings with the route parameters. The both configuration have not the same structure.  It is not the best place for this, perhaps you should play the kernel event.