replace deprecated use of preference scopes constructors