Remove redundant import
Merge pull request #12757 from terminalmage/fix-redundant-import

Remove redundant import
Reimplemented 'latest_version()' to fix #12663 and make it more readable + better debug-able.