Fix scope_for_namespace definition.