feat(account): use traits instead of methods in user and group account (closes #4405)