def METHOD_NAME(
    evaluator: SnapshotEvaluator, command_payload: t.Union[str, DemoteCommandPayload]
) -> None:
    if isinstance(command_payload, str):
        command_payload = DemoteCommandPayload.parse_raw(command_payload)
    evaluator.METHOD_NAME(
        command_payload.snapshots,
        command_payload.environment_naming_info,
    )