Batched transports implementation and source code refactoring