Rethink hard limits to find a simpler solution.
Recent revisions are kept. Restoring one creates a new revision.