SOC-3472 | Notification Emails - Move code to commons and platform