Minor cleanup to priority code.