De-nesting the module structure