Implement undoing pattern deletion.