Fixed wrong namespacing when extracting used const from top-level namespace