refactor package command