factored special_methods out to a class-level attribute for ease of patching