I haven't taken a side on the 'twice means you should factor out the commanality' vs 'only when you have 3+'. Depends on the code.