Bug 1057989 - [Devices][Storage] Do not auto change default media location when remove SD card without ejecting it while settings is not running in the foreground

It seems this function is duplicated with these lines : https://github.com/ian-liu/gaia/blob/settings/bug1057989_change_default_media_location_while_settings_app_is_in_the_background/apps/settings/js/media_storage.js#L666

Maybe we can remove those lines and reuse this function ?