Parent Issue
#2359437: [meta] Remove entity_load* family of functions usage from the code base
Problem/Motivation
There are case where dynamically typed entities are retrieved using the functional loader, entity_load*()
Proposed resolution
Replace calls to entity_load*($entity, ...)
by using \Drupal::entityTypeManager()->getStorage($entity)->loadByProperties(...)