Split checking validation of tree move into separate function.