Remove duplicate inContainer method.