Adds slight logic refactoring in hipchat notifier