Remove friend declarations from Palette.