Refactor work/home modes