Converts this function to a Layer.
case class FooLive() extends Foo val live: ULayer[Has[Foo]] = FooLive.toLayer