Add target_ops argument to to_record_is_replaying