Move setClient method to the ObserverInterface class.