[Client][Utils] Prepare the commonly used function.