The idea is to use this function for modifiers' updateDepsgraph functions instead of doing direct scene->depsgraph access.