Refactored functions which configure mediator paths to modules.