Refactored processing flow control into smaller visitor files. Separated
templates into smaller files.