We're trying to remove `Left` and `Right`, so could you define an enum local to just this function instead?