Group the optimizer components into a package (#4140)