Mode based auto-configuration by extending the `Global` object