Restructure the mul/div/rem handling code to follow the pattern the other