Refactor handling of `listeners` configuration settings.