Add datacache::update_default_theme() method to reduce code duplication