Util function to create deep name spaces