Refactory method/context switch.