I don't know if it's necessarily the 'right' way, but what I've done in the past is to just change the quantity to 100 (quantity isn't tied to anything else I'm aware of), and then just treat that as a percentage and dispose the applicable amount.
In other words, if you're disposing 70% of it, then dispose a quantity of 70 of the 100. It's hacky, but it works.