Refactored ActiveQuey::createModels() to avoid dublicated models