Refactor ntuple classes.

Extract out common information, provide a slightly more obvious
API.