The code checking for the type of seeking contained some if else statements. To improve readability, I decided to refactor those statements to a switch statement.