update-refs works only in a narrow case when every branch starts form the tip of a previous. Your helper might still be useful if it properly "replants" whole tree keeping its structure.
Though at that point it may be easier to rewrite your helper to manage rebase's interactive scripts.
Though at that point it may be easier to rewrite your helper to manage rebase's interactive scripts.