Refactoring PackedMeasure logic