Avoid mutation in a match guard.