Split sheet code into modules.