Avoided using deprecated version of importlib; refs #23418.