rpc: Refactored to use a common `processCall` for all RPC messages