Refactor DocUtil and rename to PermissionPrinter