Clean up some palette related stuff, #if 1s.