If you mean if there is a well known and tested method the answer seems to be no. So you would have to dig into what @Jamar is referring to. BUT as you are rooted, perhaps simpler install software that can take a complete backup, And after backup do the stock flashing, flash back to Lineage and then restore,
If you do find a clean way to do it on Lineage, then please let us know.