vm: refactor to use validate function
Throwing error after checking type is repeated. So replace it with validate function.
Do not update/delete: Banner broadcast message test data
Do not update/delete: Notification broadcast message test data
Throwing error after checking type is repeated. So replace it with validate function.