Construct shim class using dependency injection