Refactory code to improve the performance of concurrent modification of a single aggregate.