- factor out determination of current version id out of
_collect_update_commands and _collect_delete_commands