Removing theme dependencies from the profile, as it does not work for themes.