Cleaning up code for number of divisions.