Low: refactor package management into separate file