Actually, your subject line details it: you want to inject the element manager into an existing factory, if present.