A bit more rearranging to get the pages module into the module provider.