Remove deprecation warning when updating preference attributes.