Revert "Fix upgradecontroller, cannot import name decode_version."

This reverts commit 8db73d21eb9c33aae8da57b00028ee51160f475c.