def METHOD_NAME(field, dry_run, verbose, log_dir):
    """Replace identifiedBy with $ref."""
    for parent in field or ReplaceIdentifiedBy.fields:
        replace_identified_by = ReplaceIdentifiedBy(
            field=parent,
            verbose=verbose,
            dry_run=dry_run,
            log_dir=log_dir
        )
        changed, not_found, rero_only = replace_identified_by.run()
        click.secho(
            f'{parent:<12} | Changed: {changed} | '
            f'Not found: {not_found} | '
            f'RERO only: {rero_only}',
            fg='green'
        )
        if verbose:
            if replace_identified_by.not_found:
                click.secho('Not found:', fg='yellow')
                for pid, data in replace_identified_by.not_found.items():
                    click.echo(f'\t{pid}: {data}')
            if replace_identified_by.rero_only:
                click.secho('RERO only:', fg='yellow')
                for pid, data in replace_identified_by.rero_only.items():
                    click.echo(f'\t{pid}: {data}')