Factor zen mode.
Merge pull request #7801 from cirosantilli/dry-zen-view

Factor zen mode.