remove control code from factory.