<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_elements_with_source(source, field):
 """Remove all elements matching ``source`` in ``field``."""

    return freeze(
        [element for element in field if element.get('source', '').lower() != source]
    )