Hook config and instantiation. Include partition key in message id