Remove unnecessary doctest __main__ methods.