We need to keep only certain snapshot types and their ancestors. Also keep those needed for backtraces.