Reduce length of theme.c a bit