Remove unused PileupElement field

Also use `.headOption` in one place.