Factor out commod code to process ModR/M.