Remove deprecated method

v4.0.0 is above v3.1.0.