Bug 906154 - move gCategoryImp to its point of use to avoid a static constructor; r=smontagu