Handle constructor being an object property.