Decouple target code from remote protocol.