Tony: remove duplicate code for generating Windows nodes.