So far, there are 2 ways to record the transaction.
First way - remove dividend and then add the new shares at zero cost.
Second way - do nothing about the received dividend and then add the new shares at actual cost (ie the dividend amount for the however many number of shares)
Which way is better? Or, why is one way preferred over the other?