[Comms] Clean up sendMessage function to be able to call the function with less clutter.
[Items] Move functions to their own subtable, localize generateIcons().