abstract stats into pkg
without purpose
abstract metric creation into an emitter type