LILY-213: remove unused function get_remote_messages