Improve configuration capabilities in case of multiple routes in different packages
Replaced loop with flatMap