Refactor method to parse multi-package data