Combine identical actions under one case.