Remove irrelevant steps