One common refactoring: moving common code to a function. You are creating a strong center, and adding an explicit boundary to that code.