better usage of injector in Commands and Mediators