Abstract away GetInstanceID and remove unused serializing