Factor out SVN change processing
Reordering declarations for clarity