items_per_bag flag-field, header & footer linkage, subcategory refactoring