refactor: packager functions isolation