Removing redundant scripts