Extracted the all method to the RemoteObject class.

Signed-off-by: Florian Bergmann <fbergmann@suse.de>