def METHOD_NAME(cls, form, timestamp, tag, transactions):
    deprecated = form.is_deprecated
    return cls(
        domain=form.domain,
        form_id=form.form_id if not deprecated else form.orig_id,
        timestamp=timestamp,
        tag=tag,
        transactions=transactions,
        server_date=form.received_on,
        deprecated=deprecated,
    )