Centralize parsing of versioned ids.
Correctly convert a package's main module id to a normalized id.