Refactor copy labels task