First steps to cleaning up LootItem script.