Fix warning 'deprecated in a future major release'