Remove unused dimensions