Replaced switch statements logic with polymorphism and strategy pattern. Used to determine authorizationHeader.