The usage of `fromJust` here makes me nervous. It's safe for now, but it's one refactoring away from being dangerous. How about using `partitionEithers` instead?