Refactoring of automatic updates (companion and firmware)