Revert "More work on managed objects."

This reverts commit f48a0a4f5cb8b2ceaca883ccb610d742fbc9a763.