Significantly simplified the AutoInjectionTaskMergeDetail logic