Creating multiple service implementations with different configurations in Effect Typescript

I know this has been asked a bunch, but can someone remind me the best pattern for creating two versions of the same service implementation with different configurations (eg two api agents with different keys)? Would you make a constructor effect that extracts the appropriate config var and returns the layer and then unwrap it?
Was this page helpful?