Converting AWS/S3 Store to a Monad, rather than an explicit opaque parameter