Minor code cleanup for repo task.