Bug 1065279 - [settings] refactor Hotspot panel with AMD pattern

Private functions should be with a `_` prefix.