Add a factory class for PKey