Refactoring mass stockings

Extracted a stocking generator class so it can be reused for the new mass_stocking api