Now that layout.js uses all immutable types, usage is much simpler.