fixes bug 924267 - refactor rabbitmq newcrashes method

I have not tested, nor proved it correct :) So, it should be tested before and after landing (the jenkins integration test *should* exercise this too). The primary aim is to make this DRYer and also replace magick numbers with names.