'given a properties, return properties with namespace removed if
it matches the own default namespace'

def prune_namespace(self, properties):

    if (self.default_namespace is None):
        return properties
    if ('namespace' not in properties):
        return properties
    if (properties['namespace'] != self.default_namespace):
        return properties
    prunable = properties.copy()
    del prunable['namespace']
    return prunable
