Move CLI rabbitMQ messaging into own script