Deprecate withRootLocator and withRootElement