Parser: Small fix.
Split out HCodecs exporter to its own module.

And slight refactors to make it possible to export other things too.