Replace the unit of work command handler with a transactional one, keeping the validation of the number of saved changes.