Batch plugin: refactor BatchSubmitter

Refactor BatchSubmitter to re-use objects instead of creating
objects in loop. Also, remove repeated object creation.

Change-Id: I610bc1f3cbfeb3ba909be8ffef0748a18722133e
1 file changed