Could you use some if statements instead of switch statements with a single case block? Maybe even extract this to its own method ``getAuthorizationId($capture)``.