Migrating core code from chat to wobject