Revert "Move static functions to namespace GuiUtils"
This reverts commit dba91addb9149fa87cb1c37867f5385fc266c1cb.