def _fixProperties(class_, ignored=['product', 'content_meta_type']):
    """Remove properties with the given ids, and ensure that later properties
    override earlier ones with the same id
    """
    properties = []
    processed = set()
    for item in reversed(class_._properties):
        item = item.copy()
        if item['id'] in processed:
            continue
        if item['id'] in ignored:
            continue
        properties.append(item)
        processed.add('id')
    class_._properties = tuple(reversed(properties))
