Introduce `self` rather than using this in prefs

This doesn't actually matter here, but it provides greater
consistency with the style used in the codebase.