Revert sns message function definitions

Though technically correct, the changes made in the previous commit were
unnecessary for running the code correctly.