Batch operation code clean up.