refactor nokogiri .css selectors