Remove redundant axis definitions.