From liquid metal dealloying to liquid metal expulsion