Deep learning for intensity mapping observations: Component extraction