Converted BatchExecutor to an interface