Delete unnecessary setting of layers.