refactoring models definition to save an object from push automatically