[client] Move commonly used code to the super object.