Functions to create namespaces inside objects