Remove redundant mages