[misc] Updated code to work with the latest phenotips snapshot