Implemented several improvements to BatchCreateFactor (#25).

Integration test is very close to passing.