Removes redundent snippits