MAP-195: push factory management to root service and put a lock around it.