Boilerplate for a layout mediator