Safely declare namespaces and set their properties