refactored out constructor injection for mediators