Remove nearly duplicate functions.