Start refactoring AOS-RPC interface