Refs #11084: `focus` is called on every page via `layout.html`, allowing duplicate code to be removed.