AS-397 Remove metadata when detaching servers

Unfortunately, as you might expect, this breaks a ton of mocking-based tests that check call args :(