Removing Redundant Code