Factor out RPCTarget into its own file.