Refactor package tasks to use rake