Basically the reason it's there is that in WSDL an operation can be linked to both a type and a named element. However we should be able to handle it better and avoid this conditional.