Add CharacterData interface and simplify examples/remove_by_id.lua