[di] restrict to use only class as storage entry.