Server: Replace unnecessary bitwise operations with simple == tests.