Remove unused SpeciesReference typedef
Put everything in a namespace