Move bootstrap types code out of sandbox into library - though still not necessarily ready