Converts this function to a Layer that depends upon its inputs.
case class FooLive(config: Config, repo: Repo) extends Foo val live: URLayer[Has[Config] with Has[Repo], Has[Foo]] = FooLive.toLayer