Extract common logic into +switch:cases:useDefault:default: