g10: Simplify "factory-reset" procedure.