Removes dupe code