Can you move L1219-L1232 to a new function (e.g. `removeInlineFrame`) and reuse it in L1238? Thanks.