undef_method and remove_method implementation.