Issue #3123210 by nitesh624, Hardik_Patel_12, jameszhang023, sanjayk, jungle, alexpott: Replace non-test usages of \Drupal::theme() with IoC injection