Small simplification to the layout code.

16 jobs for 950-gui-error-when-clicking-in-in-filters-in-entries-search in 71 minutes and 27 seconds (queued for 3 seconds)