Move complex functions from Object.h to Object.cpp