Removing extraneous containers