'Unindex an item from our name_to_item dict.
:param item:    The item to unindex'

def unindex_item(self, item):

    name_property = getattr(self.__class__, 'name_property', None)
    if (name_property is None):
        return
    self.name_to_item.pop(getattr(item, name_property, ''), None)
