Move containerizer core methods into a class.