MAINT: remove a redundant function definition