Less error-prone namespace injection for global enviroments