Revert "Use the inherit object function"

This reverts commit f4030cf0f132b51bd09dcb868f820b13880b7613.