remove silly DeprecationError definition

direct defined now