Moved Pmid helper to NFS and connected to routing functor.