DRY up namespace creation