Allow popup to work again.
Move branch extraction towards a pipeline.