It seems compartmentalizing can help to keep one's sanity. As long as it is not sinful, it might be a good thing. For example, have an old friend in a mental ward in Louisiana. I do pray for her. My elderly mother, son and daughter are far away from me. There are some situations I must compartalize enabling me to focus on daily life and my work.
It takes practice. Men probably compartmentlize better than women?????
http://psp.sagepub.com/cgi/content/abstract/33/2/143