Move CoreObject to it's own class file.