Fixes regression from shared layout style object. Moved shared layout style object to the view instance where it should be.