Refactor autowire to make emitter injectable

[#79186814]

Signed-off-by: Andrew Poydence <apoydence@pivotal.io>