Find code that needs refactoring with metrics.
Recent revisions are kept. Restoring one creates a new revision.