Start refactoring the input target list code.

Add "targetList" syntax to query, task and work XML