Refactor to put more common code in Application.cfm