Refactoring: Pull all fullscreen code out of Document and into its own helper class