Remove redundant commands