Small refactoring of smile panel generation (don't generate panel for anons, other optimizations).