Remove redundant version check and assignment