Using constants for amqp delivery mode instead of hard-coded variables. Fixes #1235