refactoring User#plugins= into smaller methods