Improved namespace snippet