Fixes n+1 queries on DataTypeDefinitionRepository