Refactor how we open pack files to prepare for multiple windows.