MAINT: remove some obsolete code