Little palette-code cleanup