Relocate removed variables into address space records.

Signed-off-by: Rami Ylimäki <rami.ylimaki@vincit.fi>
Refactor generated code elements to be easily adjustable.

Signed-off-by: Rami Ylimäki <rami.ylimaki@vincit.fi>