Rewrite the worker code for package edits.