Refactor versioning refresh command