I think ActivityPalette should be a subclass of Palette, and live in its own module, graphics/activitypalette.js .  And it should be instantiated in the activity setup().