Refactor version_changes method