Add support for the level parameter for themes and documents (themes).