This is a duplication of the code in `Model.findAll`. You should extract the callback to a class that can be used by both `Model.findAll` and `ContainerRepository.getAll`.