One of the defendants in a case of an alleged pill mill operation in southern West Virginia has agreed to plead guilty to aiding and abetting in the operation as part of a plea deal with federal prosecutors.