Thank you for posting the correct code. It would be nice if ‘changing to a category’ would be added in a future release. Changing to draft (so that you can manually put in archive category) causes you to have to ‘publish’ the article again, which makes it confusing for people reading via RSS.