Extract out common routine of deploy existing package