Move the code for deleting BaseRegs and LSRUses into helper functions,