Replace lambda by ordinary protected method.