Can you use herein to refer back?
It is fine as long as the reference is clear. Use the language to express your ideas as best you can. But if there is any doubt, make it explicit. A friendly reader might give you some advice on clarity.
You can also use &quot;therein&quot; for a more remote reference.