Remove duplicate function definition