Issue #2266859 by tim.plunkett: Move the dependency calculation helper methods from ConfigEntityBase to generic traits.