Filter out duplicate functions.