ensure: move update args validation to a new func
ensure: move update args validation to a new func

Separating the validation code would enable testing the validation code
in isolation.

golang/dep,golang/dep,ibrasho-forks/dep,golang/dep,ibrasho-forks/dep