Issue #2390615 by alexpott: Add method to determine config dependency key depending on entity type