$bodyMsgKey and $surveyUrl are used only in certain conditions. Maybe should initialized only then?