Expands the namespace of a qualified class/module declaration by replacing its qualifiers with modules.

Note that using modules as namespaces alters the nesting within and changes how constant lookup works.