Reduce unnecessarily complicated restrict case.