KAZOO-2416: make the get_account_name a bit more generic