MAINT: remove redundant code