The `isBinary()` helper function basically switches on a field's SQL data type, but it is only used in one place, and a pattern match on the same value happens immediately after, so I got rid of the helper function and included all the logic in a single pattern match.