Remove redefinition of foreach callback