Update entity creation helper to return array of created entities.