factories: don't install api undo callbacks until needed (an maya has been initialized)