Infrastructure code for CQRS