Extract PidFile class.