Combining `Effect.flatMap` and `Effect.mapBoth` for Branching Logic - Effect Community