Cleanup - satisfy code analysis and delete some commented code.
Restore the ability to edit 'Listed' state of a package version.