Further break up theme.lua.

It's in line with Aurora now. More cleanup to follow.