Refactor NXViewController to separate into modules.