[PATCH 4/6] Don't set up a child factory if the container is set and exists.