- Eliminated the inline `get_admin_namespace` function to streamline the code and improve readability. - The function is now imported from the centralized `config.middleware` module, enhancing code organization and reusability.