Replaced the OrderedModel class with an external repository.