Removed TYPE constant from Models because it was conflicting with the property constant of properties named 'type'.