Helper class that transforms list of menu items into the list of Page classes.
Each page contains the maximum number of menu items as returned by the getMaxMenuItems() method.