Properly defining RPC class in correct files