Move runner to separate module.

Refactor after emitter changes.