cleanup duplicate code in GuiMob and GuiSpawner, other gui cleanup