Remove deprecated methods usage.