refactor the mobilnetwork code

I made this refactor while I was checking `connected` so we wouldn't use the region of a SIM which was removed; I don't think we want to do that. The refactor should still be good though.