To compartmentalize something means to divide it into separate sections.
Some people compartmentalize their lives and don't mix their personal and professional pursuits. [VERB noun]
[Also
VERB noun +
into]Synonyms: categorize or categorise, classify, pigeonhole, sectionalize or sectionalise