Eliminate duplicate functions