There are things the db side would be better posed to handle and understand wrt replication.
Moving it to application code requires a trade off and also everybody copying the same code in all of their applications for no reason other then somebody decided the application should be the one to handle it.