Obtain mainContainer from options.