Deprecate MWFunction::newObj() in favor of ObjectFactory

Change-Id: Iaa803311409cf7b649f64f69bafe2935a418d31c
Merge "Deprecate MWFunction::newObj() in favor of ObjectFactory"