Simplified the way how RPC methods are registered.