Refactor Dart with patterns that fit the data.
Recent revisions are kept. Restoring one creates a new revision.