Break the main functionality into analytics, config, resources and site modules