Refactored code in AccountPreferenceCategory for clarity. Deleted unused code and comments from other classes.