Break up large method into more-semantic pieces

@natritmeyer Here's a refactor to reduce the ABC of the `#url_matches?` method below rubocop's threshold.  Rubocop runs green now.