Added code to a method to `to_i` the factory quantity