def METHOD_NAME(data):
    """Removes in place the $schema values.
    Removes the root and the sources $schema.
    :param data: the data representation of the current contribution as a dict.
    :returns: the modified data.
    :rtype: dict.
    """
    data.pop('$schema', None)
    for source in current_app.config.get('RERO_ILS_AGENTS_SOURCES', []):
        if source in data:
            data[source].pop('$schema', None)
    return data