Move stuff into a namespace

As preparation for adding the different hit classes.