Simplify the namespace processing.