Removes redundant fragment activity.