Refactor PeriodGroup#split_into to use Enumerable#each_cons
Use better local variable names in PeriodGroup#split_into
Extract ideal_piece_size local
Break one big #map into two