seems in conflict with the versionsToKeep.

Shouldn't we takeRight(versionsToKeep)?