Move loading and processing into their own methods.

This isn't immediately useful, but it should keep things cleaner
as loading becomes more complex and as we copy this code for use
with other websites.