Reworked the formatPreferences handling to leverage Delombok's magic.  Ultimately I hope this is more maintainable.