Renamed onAdd/onRemove to init/destroy for objects.