Migrates group discussion replies to entities

Replaces #6177