Change RPC handler methods to be free functions.