Created private functions to avoid duplicated code in Document

2 jobs for !28 with gsoc2019_focusAction in 14 minutes and 42 seconds (queued for 2 seconds)
detached
Status Job ID Name Coverage
  Build
passed #15745
build_ubuntu_18_04

00:08:39

passed #15744
linux kf5-qt5 qt5.12

00:14:42

40.0%