Split Client into Client and LocalClient