Refactor from Entity[] to List<Entity>