[deployment handler] Refactor the old installer_handler