Remove redundant flags