Refactor article rake task.