LPS-35074 Turning Layout to StagedModel

It's fairly simple and straightforward.

Majority of the change is autogenerated code.