This feature is called adoptable storage on Marshmallow. It formats the SD card as if it was the same as the internal storage, so you end up with one giant "internal storage". Once this setting is on, the user should not be removing the SD card frequently, whether intentionally or inadvertently...