Factor out mechanize object