Simplify the condition in restore action.