All this code should go into a dedicated service.
And please import `Swift_Message` :-P