move the block below to a dedicated method `_squash_versop_entries`?