Code refactored to work with edeposit.amqp.serializers module.