refactor common RPC definitions in to client module