Modify the proposed change to work dependency injection style instead of service location style.