Simplify namespace check.