I would rename this to account_type to match what it returns.

Also, This does not need to assigned to a variable, you can change it to

case account_type(account)