How to avoid supplying exact types in a Dict constructor?

Your MWE does not run as Entity is not defined. It is hard to help without a self-contained MWE, see