MAINT: use numpy decorator for deprecation